<%@page import="board.BoardVo"%>
<%@page import="java.util.ArrayList"%>
<%@page import="board.BoardMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="boardVo" class="board.BoardVo"/>
<jsp:setProperty property="*" name="boardVo"/>
<%
BoardMyba mybatis = new BoardMyba();
mybatis.setBoardVo(boardVo);
mybatis.setNowPage(boardVo.getNowPage()); 
ArrayList<BoardVo> data = mybatis.list();
%>
<form name='board_list' method='post' action='test.jsp'>
	<input type='serach' name='find' value='<%=boardVo.getFind() %>'>
	<input type='submit' value='검색'>
</form>
<hr/>
<%
for(int i=0; i<data.size(); i++){
	BoardVo v = data.get(i);
	out.print("<div>");
	out.print("<a href='view.jsp?mid=" + v.getMid() + "'>" + v.getMid() + "</a>," + v.getSubject());
	out.print("</div>");
	
}
%>

</body>
</html>